﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class IronNPC:Npc
    {
        protected string npcinfo;

        public string NPCInfo
        {
            get { return this.npcinfo; }
            set { this.npcinfo = value; }
        }
        public IronNPC(string npcname, Npctype type, string npcinfo) : base(npcname, type)
        {
            this.npcinfo = npcinfo;
        }

        public override void Speak()
        {
            Console.WriteLine("{0}:{2}", this.npcname, Npctype.Iron, this.npcinfo);
        }
    }
}
